package com.ksm.zyz.common.interceptor;

import org.slf4j.Logger;
import org.springframework.ui.ModelMap;
import org.springframework.web.context.request.WebRequest;
import org.springframework.web.context.request.WebRequestInterceptor;


/**
 * 登录拦截器
 * @author litao
 *
 */
public class LoginInterceptor implements WebRequestInterceptor {

	private Logger logger = org.slf4j.LoggerFactory.getLogger(this.getClass());
	@Override
	public void preHandle(WebRequest webRequest) throws Exception {
		logger.info("处理请求前。。。");
	}

	@Override
	public void postHandle(WebRequest webRequest, ModelMap modelMap) throws Exception {
		logger.info("处理请求中。。。");
	}

	@Override
	public void afterCompletion(WebRequest webRequest, Exception e) throws Exception {
		logger.info("处理请求后。。。");
	}
}
